#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QAction>
#include <QMenuBar>
#include <QToolBar>
#include <QFileDialog>
#include <QGraphicsView>
#include <QVBoxLayout>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void newFile();
    void openFile();
    void saveFile();

private:
    void initUI();

private:
    void createActions();
    void createMenus();
    void createToolBars();

    QAction *m_newAction;
    QAction *m_openAction;
    QAction *m_saveAction;
    QMenu *m_fileMenu;
    QToolBar *m_fileToolBar;

    QGraphicsView* m_view;
    QVBoxLayout* m_layout;
};

#endif // MAINWINDOW_H
